home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #3 / Amiga Plus CD - 2002 - No. 03.iso / AmiSoft / Hard / Drivr / 3c589.lha / 3c589 / Source / Makefile < prev    next >
Makefile  |  2003-02-08  |  607b  |  32 lines

  1. # File: Makefile
  2.  
  3. CFLAGS = -msmall-code -O3 -ansi -Wall -Wno-uninitialized -Wno-parentheses
  4. CC = gcc $(CFLAGS)
  5. MAKEFILE = Makefile
  6. LINKER = ld -e _Main -s
  7. AMIGA_LIB = GG:lib/libamiga.a
  8. C_LIB = GG:lib/libnix/libnix13.a
  9.  
  10. DEV_NAME = 3c589.device
  11. OBJS = device.o unit.o request.o
  12. HDRS = device.h
  13.  
  14. .c.o :
  15.     $(CC) -c $<
  16.  
  17. $(DEV_NAME): $(MAKEFILE) $(OBJS)
  18.     $(LINKER) $(OBJS) $(AMIGA_LIB) $(C_LIB) -o $(DEV_NAME)
  19.     Protect "$(DEV_NAME)" "-e"
  20.  
  21. $(OBJS): $(MAKEFILE) $(HDRS)
  22.  
  23. unit.o: etherlink3.h
  24.  
  25. install: $(DEV_NAME)
  26.     Copy CLONE "$(DEV_NAME)" "DEVS:networks/"
  27.     Flush "$(DEV_NAME)"
  28.  
  29. clean:
  30.     Delete "$(DEV_NAME)" "#?.o"
  31.  
  32.